﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using GeneracionYPrueba;
using BusquedasPrimeroAnchuraPrimeroProfundidad;
using ElPrimeroElMejor;

namespace TrabajoPractico1
{
    public partial class FormMain : Form
    {
        public FormMain()
        {
            InitializeComponent();
        }


        #region Eventos

        private void expansiónCombinatoriaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ExpansionCombinatoria app = new ExpansionCombinatoria();
            if (app.ShowDialog() != DialogResult.Cancel)
            {
                this.Close();
            }
        }

        private void ramificaciónYPodaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ExpansionCombinatoria app = new ExpansionCombinatoria();
            if (app.ShowDialog() != DialogResult.Cancel)
            {
                this.Close();
            }
        }

        private void primeroEnProfundidadToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmPrincipal app = new frmPrincipal();
            if (app.ShowDialog() != DialogResult.Cancel)
            {
                this.Close();
            }
        }

        private void primeroEnAnchuraToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmPrincipal app = new frmPrincipal();
            if (app.ShowDialog() != DialogResult.Cancel)
            {
                this.Close();
            }
        }

        private void genaraciónYPruebaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            GeneracionYPrueba.GeneracionYPrueba app = new GeneracionYPrueba.GeneracionYPrueba();
            if (app.ShowDialog() != DialogResult.Cancel)
            {
                this.Close();
            }
        }

        private void algoritmoAToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AlgoritmoAEstrella._8Puzzle app = new AlgoritmoAEstrella._8Puzzle();
            if (app.ShowDialog() != DialogResult.Cancel)
            {
                this.Close();
            }
        }

        private void primeroElMejorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ElPrimeroElMejor.Form1 app = new ElPrimeroElMejor.Form1();
            if (app.ShowDialog() != DialogResult.Cancel)
            {
                this.Close();
            }
        }

        private void salirToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void integrantesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string integrantes= " Blasich, Juan Carlos \n" +
                                " Lazzarini, Agustina María \n"+
                                " Motta, Bruno José \n"+
                                " Piccato, Lucía";
            MessageBox.Show(integrantes, "Integrantes Grupo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
        }

        #endregion

    }
}
